<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>个人中心</title>
    <style>
        form {
            margin: 20px auto;
            padding: 20px;
            width: 400px;
            background-color: #f5f5f5;
            border-radius: 5px;
        }

        label {
            display: inline-block;
            margin-bottom: 5px;
            font-weight: bold;
        }

        input[type="text"], input[type="email"], input[type="password"] {
            padding: 5px 10px;
            border: none;
            border-radius: 3px;
            margin-bottom: 10px;
            width: 100%;
            box-sizing: border-box;
        }

        input[type="submit"] {
            background-color: #4CAF50;
            color: #fff;
            padding: 10px;
            border-radius: 3px;
            border: none;
            cursor: pointer;
        }
    </style>
</head>

<body>
<h1>个人中心</h1>
<form action="${pageContext.request.contextPath}/edituser" method="post">
    <label>个人 id：</label>
    <input type="text" name="id" value="${USER_SESSION.id}" disabled><br>
    <label>用户名：</label>
    <input type="text" name="name" value="${USER_SESSION.name}"><br>
    <label>邮箱：</label>
    <input type="email" name="email" value="${USER_SESSION.email}"><br>
    <label>密码：</label>
    <input type="password" name="password" ><br>
    <label>身份信息：</label>
    <input type="text" name="role" value="${USER_SESSION.role}" disabled><br>
    <input type="submit" value="保存">
</form>
</body>
</html>
